<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ include file="../general/header.jsp" %>

	<h3>Resultados del Matching</h3>
	<div class="featurebox_center">
		<c:if test="${empty errorLogin}">
			<ul class="tabs"> 
				<li><a href="#tab1">Encontrados</a></li> 
				<li><a href="#tab2">Conflictos</a></li>
				<li><a href="#tab3">No Encontrados</a></li> 
			</ul>
			<div class="tab_container"> 
				<div id="tab1" class="tab_content"> 
					<ul class="usuarios">
						<c:choose>
							<c:when test="${empty matchedProfiles}">
								<h2>No se encontraron candidatos exactos.</h2>
							</c:when>
							<c:otherwise>
								<c:forEach var="matchedprofile" items="${matchedProfiles}">
									<c:set var="link" value="../user/viewProfile?userid=${matchedprofile.user.id}" />
									<c:set var="user" value="${matchedprofile.user}"/>
									<c:set var="showCheckBox" value="false"/>
									<c:set var="linkText" value="Ver Perfil"/>
									<%@ include file="../user/user.jsp" %>
								</c:forEach>
							</c:otherwise>
						</c:choose>
						<div class="clear"></div>
					</ul> 
				</div> 
				<div id="tab2" class="tab_content"> 
					<ul class="usuarios">
						<c:choose>
							<c:when test="${empty conflictedProfiles}">
								<h2>No hay conflictos.</h2>
							</c:when>
							<c:otherwise>
								<c:forEach var="profile" items="${conflictedProfiles}">
									<c:set var="link" value="solveFacebookConflict?userid=${profile.user.id}" />
									<c:set var="user" value="${profile.user}"/>
									<c:set var="showCheckBox" value="false"/>
									<c:set var="linkText" value="Resolver Conflicto"/>
									<%@ include file="../user/user.jsp" %>								
								</c:forEach>
							</c:otherwise>
						</c:choose>
						<div class="clear"></div>
					</ul> 
				</div> 
				<div id="tab3" class="tab_content">
					<ul class="usuarios">
						<c:choose>
							<c:when test="${empty unmatchedProfiles}">
								<h2>No hay candidatos sin resultado asociado.</h2>
							</c:when>
							<c:otherwise>
								<c:forEach var="profile" items="${unmatchedProfiles}">
									<c:set var="link" value="../user/viewProfile?userid=${profile.user.id}" />
									<c:set var="user" value="${profile.user}"/>
									<c:set var="showCheckBox" value="false"/>
									<c:set var="linkText" value="Ver Perfil"/>
									<%@ include file="../user/user.jsp" %>									
								</c:forEach>
							</c:otherwise>
						</c:choose>
						<div class="clear"></div>
					</ul>
				</div>
			</div> 
			<div class="clear"></div>
		</c:if>
	</div>
<%@ include file="../general/footer.jsp" %>